<!--
 * @Description: vue3.x学习
 * @Author BPF
 * @create 2021/8/25 21:07
 -->
<template>
  <div>{{ timestamp_ }}</div>
  <a-input v-model:value="timestamp_"></a-input>
  <a-button @click="onclick">更改</a-button>
  <a-button type="primary" @click="timestamp_ = !timestamp_">visible {{ timestamp_ }}</a-button>
  <compo @sayHello="sayHello"></compo>
</template>

<script setup>
import compo from './compo'
import { unref } from 'vue'
import { get } from '~vuex-helper'
let timestamp_ = get('user/timestamp')

console.log('timestamp_', timestamp_)

const onclick = () => {
  timestamp_ = Math.random().toString(36).substring(2, 15)
}

const sayHello = (arg1, args2) => {
  console.log(arg1, args2)
}
</script>

<style scoped></style>
